<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{fragments/layout}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人博客后台登陆</title>
    <link rel="stylesheet" type="text/css" th:href="@{/static/admin/layui/css/layui.css}"/>
    <link rel="stylesheet" th:href="@{/static/admin/css/login.css}">
</head>
<body>
<div class="kit-login">
    <div class="kit-login-bg"></div>
    <div class="kit-login-wapper">
        <h2 class="kit-login-slogan">欢迎使用 <br> KITADMIN 1.x后台模板</h2>
        <div class="kit-login-form">
            <h4 class="kit-login-title">登录</h4>
            <form class="layui-form" action="/blog/api/doLogin" method="post">
                <div class="kit-login-row">
                    <div class="kit-login-col">
                        <i class="layui-icon">&#xe612;</i>
                        <span class="kit-login-input">
                <input type="text" name="username" lay-verify="required" placeholder="用户名/邮箱/手机号"/>
              </span>
                    </div>
                    <div class="kit-login-col"></div>
                </div>
                <div class="kit-login-row">
                    <div class="kit-login-col">
                        <i class="layui-icon">&#xe64c;</i>
                        <span class="kit-login-input">
                <input type="password" name="password" lay-verify="required" placeholder="密码"/>
              </span>
                    </div>
                    <div class="kit-login-col"></div>
                </div>
                <div class="kit-login-row">
                    <div class="kit-login-col">
                        <input type="checkbox" name="rememberMe" title="记住帐号" lay-skin="primary">
                    </div>
                </div>
                <div class="kit-login-row">
                    <button class="layui-btn kit-login-btn" lay-submit="submit" lay-filter="login_hash">登录</button>
                </div>
                <div class="kit-login-row" style="margin-bottom:0;">
                    <a href="javascript:;" style="color: rgb(153, 153, 153); text-decoration: none; font-size: 13px;"
                       id="forgot">忘记密码</a>
                </div>
            </form>
            <input type="hidden" id="context_path" th:value="${#httpServletRequest.getContextPath()}">
        </div>
    </div>
</div>

</body>
<script th:src="@{/static/jquery.min.js}"></script>
<script th:src="@{/static/admin/js/polyfill.min.js}"></script>
<script th:src="@{/static/admin/layui/layui.js}"></script>
<script type="text/javascript">
    var path = $("#context_path").val();
    layui.config({
        base: path + '/static/admin/js/' //你的模块目录
    }).use('login'); //加载入口
</script>
</html>